home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Periodicals / develop / develop 7 code / Help for Print Dlogs / ModifyDialogs.r < prev    next >
Encoding:
Text File  |  1991-05-01  |  2.8 KB  |  143 lines  |  [TEXT/MPS ]

  1. /*
  2.     ModifyDialogs.r    -    Resource definitions used by ModifyDialogs
  3.  
  4.     Version    When    Who        What
  5.     ------- ----    ---        ----
  6.     2.0        4/22/91    Zz        Added Append2hdlg routine to support Help Manager
  7.                             balloons for the items appended to the dialog.
  8.                             
  9. */
  10.  
  11.     
  12. #include "types.r"
  13. #include "BalloonTypes.r"
  14.  
  15. /* This resource defines the contents of the balloon that will be    */
  16. /* shown when the user points to the application icon in Finder...    */
  17. resource 'hfdr' (128, purgeable) {
  18.     HelpMgrVersion, hmDefaultOptions, 0, 0,
  19.     {
  20.     HMSTRResItem {
  21.         128
  22.         }
  23.     }
  24. };
  25.  
  26. /* This resource defines the items that we want to append onto the    */
  27. /* Printing Manager dialog(s).                                        */
  28. resource 'DITL' (256, purgeable) {
  29.     {    /* array DITLarray: 3 elements */
  30.         /* [1] */
  31.         {8, 0, 24, 112},
  32.         CheckBox {
  33.             enabled,
  34.             "First Box"
  35.         };
  36.         /* [2] */
  37.         {8, 175, 24, 287},
  38.         CheckBox {
  39.             enabled,
  40.             "Second Box"
  41.         };
  42.         /* [3] */
  43.         {8, 350, 24, 462},
  44.         CheckBox {
  45.             enabled,
  46.             "Third Box"
  47.         }
  48.     }
  49. };
  50.  
  51. /* This is the Help Manager compliment of the above DITL resource.    */
  52. /* There is basically one item defined here for each item in the     */
  53. /* DITL.                                                            */
  54. resource 'hdlg' (256, purgeable) {
  55.     HelpMgrVersion,
  56.     0,
  57.     hmDefaultOptions,
  58.     0,
  59.     0,
  60.     HMSkipItem {
  61.  
  62.     },
  63.     {    /* array HDialogArray: 3 elements */
  64.         /* [1] */
  65.         HMStringResItem {
  66.             {0, 0},
  67.             {0, 0, 0, 0},
  68.             256,
  69.             1,
  70.             256,
  71.             2,
  72.             256,
  73.             3,
  74.             256,
  75.             4
  76.         },
  77.         /* [2] */
  78.         HMStringResItem {
  79.             {0, 0},
  80.             {0, 0, 0, 0},
  81.             256,
  82.             5,
  83.             256,
  84.             6,
  85.             256,
  86.             7,
  87.             256,
  88.             8
  89.         },
  90.         /* [3] */
  91.         HMStringResItem {
  92.             {0, 0},
  93.             {0, 0, 0, 0},
  94.             256,
  95.             9,
  96.             256,
  97.             10,
  98.             256,
  99.             11,
  100.             256,
  101.             12
  102.         }
  103.     }
  104. };
  105.  
  106.  
  107. /* These strings are referenced by the hdlg resource above.  They    */
  108. /* define the contents of the Help Manager balloons for the dialog    */
  109. /* items.                                                            */
  110. resource 'STR#' (256, purgeable) {
  111.     {
  112.     /* [01] */
  113.     "Sample checkbox #1 - Clicking here will put a check in the box.";
  114.     /* [02] */
  115.     "Sample checkbox #1 - This item is currently disabled.";
  116.     /* [03] */
  117.     "Sample checkbox #1 - Clicking here will clear the check in the box.";
  118.     /* [04] */
  119.     "";                        /* Can't 'mark' a checkbox!!! */
  120.     /* [05] */
  121.     "Sample checkbox #2 - Clicking here will put a check in the box.";
  122.     /* [06] */
  123.     "Sample checkbox #2 - This item is currently disabled.";
  124.     /* [07] */
  125.     "Sample checkbox #2 - Clicking here will clear the check in the box.";
  126.     /* [08] */
  127.     "";                        /* Can't 'mark' a checkbox!!! */
  128.     /* [09] */
  129.     "Sample checkbox #3 - Clicking here will put a check in the box.";
  130.     /* [10] */
  131.     "Sample checkbox #3 - This item is currently disabled.";
  132.     /* [11] */
  133.     "Sample checkbox #3 - Clicking here will clear the check in the box.";
  134.     /* [12] */
  135.     "";                        /* Can't 'mark' a checkbox!!! */
  136.     }
  137. };
  138.  
  139. resource 'STR ' (128, purgeable) {
  140.     "Run this application with Help balloons on to see an example of adding "
  141.     "help to items appended into the Page Setup and Print dialogs."
  142. };
  143.